binary relational operators
The binary relational operators are > , >= , <= , < , <> , = , aka
!<= , !< , !>= , != , == .
>, !<=
> and !<= return $$TRUE if the left operand is greater than the right operand;
otherwise they return $$FALSE.
>=, !<
>= and !< return $$TRUE if the left operand is greater or equal to the right
operand; otherwise they return $$FALSE.
<=, !>
<= and !> return $$TRUE if the left operand is less than or equal to the right
operand; otherwise they return $$FALSE.
<, !>=
< and !>= return $$TRUE if the left operand is less than the right operand;
otherwise they return $$FALSE.
<>, !=
<> and != return $$TRUE if the left operand is not equal to the right operand;
otherwise they return $$FALSE.
= ==
= and == return $$TRUE if the left operand is equal to the right operand; otherwise they
return $$FALSE.
operator considerations
Conventional BASIC does not have logical operators: && ^^ || ! !!
In conventional BASIC, the bitwise operators AND , XOR , OR , NOT are used in place of the
corresponding logical operators, sometimes with undesirable results. For example, if x=1
and y=2 , then x AND y returns zero, which is FALSE , while x&&y returns TRUE .
Furthermore, x XOR y returns 3 , which is TRUE , while x^^y returns FALSE.